import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  // base:'/static/',
  plugins: [vue()],
  server: {
    proxy: {
      // 详细配置写法
      "/api": {
        target: "http://192.168.1.187:80",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ""),
      },
    },
  },
});
